package com.example.demo.fallback;

import com.example.demo.feign.ApiFeign;

public class ApiFeignFallback implements ApiFeign {

    private static final String API_FALLBACK = "fallback";

    private Throwable throwable;

    ApiFeignFallback(Throwable throwable) {
        this.throwable = throwable;
    }

    @Override
    public String feignMethod(boolean ok) {
        return API_FALLBACK;
    }

    @Override
    public String feign(boolean ok) {
        return API_FALLBACK;
    }
}
